package com.shatower.chatctrl.dao.service.impl;

import com.shatower.chatctrl.dao.mapper.VolunteerMapper;
import com.shatower.chatctrl.dao.pojo.Volunteer;
import com.shatower.chatctrl.dao.pojo.VolunteerExample;
import com.shatower.chatctrl.dao.service.VolunteerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by hhggccll on 2017/10/19.
 */
@Service("volunteerService")
public class VolunteerServiceImpl implements VolunteerService {

    @Autowired
    private VolunteerMapper volunteerMapper;

    @Override
    public List<Volunteer> selectByExample(VolunteerExample example) {
        return volunteerMapper.selectByExample(example);
    }

    @Override
    public int insertSelective(Volunteer record) {
        return volunteerMapper.insertSelective(record);
    }
}
